<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="app">
    <base-layout>
      <template v-slot:header>
        <h1>Here might be a page title</h1>
      </template>

      <p>A paragraph for the main content.</p>
      <p>And another one.</p>

      <template v-slot:footer>
        <p>Here's some contact info</p>
      </template>
    </base-layout>
  </div>

  <template id="temp1">
    <div class="container">
      <header>
        <slot name="header"></slot>
      </header>
      <main>
        <slot></slot>
      </main>
      <footer>
        <slot name="footer"></slot>
      </footer>
    </div>
  </template>

  <script src="libs/vue.js"></script>
  <script src="libs/vue-router.js"></script>

  <script>
    var baseLayout = {
      template: '#temp1'
    }
    var vm = new Vue({
      el: '#app',
      components: {
        'base-layout': baseLayout
      }
    })
  </script>
</body>

</html>